package com.mspbots.core.teams.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.JsonNode;
import com.mspbots.core.typehandler.JsonNodeTypeHandler;
import com.mspbots.core.wise.model.TenantEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author billb
 */
@Data
@Accessors(chain = true)
@TableName(value = "tenant_teams_user_message", autoResultMap = true)
public class TeamsUserMessage extends TenantEntity {

    private String teamsUserId;
    private String message;
    private String reply;
    private LocalDateTime createDate;

    @TableField(typeHandler = JsonNodeTypeHandler.class)
    private JsonNode extend;

    private transient String tenantName;
    private transient String teamsUserName;
}
